filedialog: Don't assert too much
authorMatthias Clasen <mclasen@redhat.com>
Sun, 23 Jul 2023 16:30:38 +0000 (12:30 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 23 Jul 2023 16:33:47 +0000 (12:33 -0400)
commit79721d64ad63a2e1cba2037f0cd910648d1ac0bd
treed8415105e2ec8bc45a552a7fca05b41124a1ecf3
parent0b1bcf8bee89950e2783d65000b692f059375fba
filedialog: Don't assert too much

The GtkFileDialog code was asserting that
we get exactly one file back. But the function
is nullable anyway, so lets just return NULL
if we don't have a file.

Fixes: #5975
gtk/gtkfiledialog.c